package com.qf.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;

@Data
public class User implements Serializable {

    @JsonIgnore
    private Integer id;
    private String name;
    private String password;
    private String sex;
    //毫秒转成相应的格式
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Data birthday;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Data registTime;
}
